import service from ".";
const departmentApi={
    insert(department){
        return service.post('/admin/department', department);
    },
    delete(did){
        return service.delete(`/admin/department/${did}`);
    },
    update(department){
        return service.put('/admin/department/', department);
    },
    selectAll(){
        return service.get('/admin/department');
    },
    selectById(did){
        return service.get(`/admin/department/${did}`);
    }
};
export default departmentApi;